package com.isoft.student.dao;

import com.isoft.student.eo.TestpaperEOPage;
import com.isoft.student.model.Testpaper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 操作数据库方法的对接
 */
@Mapper
public interface TestpaperMapper {

    //试卷添加
    int insertTestpaper(Testpaper testpaper);
    //通过角色名称获取数量
    int getPapernameCount(String papernamename);
    //试卷更新
    int updateTestpaper(Testpaper testpaper);
    //根据班级试卷删除
    int delTestpaper(String classname);
    //根据试卷信息主键获取是否存在信息
    int getExampaperCount(Integer testpaperid);

    //试卷列表信息查询
    List<TestpaperEOPage> getTestpaperWhereAll(TestpaperEOPage testpaperEOPage);
}
